package com.hshx.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
public class Train implements Serializable {
    @TableId
    private Integer train_id;//培训id
    private Integer train_no;//培训编号
    private String training_course;//培训课程

    @TableField(value ="CREATE_TIME", fill= FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;//创建时间
    private String trainer;//培训导师
    private Integer num_trainees;//培训人数
    //    @DateTimeFormat(pattern = "")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date train_start_time;//培训开始时间
    //    @DateTimeFormat(pattern = "")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date train_end_time;//培训结束时间
    private String train_users;//参加培训人员名称
    private Integer train_state;//1启用，2禁用

    private String brief;//简介
}
